@extends('member.member')

<!-- title -->
@section('title', '我的文档')

<!-- 中间内容块 -->
@section('rightcontainer')
<div class="my_integral">
		<table class="table_1">
			<tr class="int_title">
				<th>序号</th>
				<th>标题</th>
				<th>原因</th>
				<th>时间</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			@foreach($reports as $rep)
			<tr id="news_{{$rep->id}}">
				<td>{{$rep->id}}</td>
				<td>
                    @if($rep->app == 'teaches' || $rep->app == 'teaches_company' || $rep->app == 'teaches_content')
                    {{$rep->resource($rep->app,$rep->app_id)->name}}
                    @else
                    {{$rep->resource($rep->app,$rep->app_id)->title}}
                    @endif
                </td>
				<td>{{ $rep->reson }}</td>
				<td>{{ date('Y-m-d',strtotime($rep->created_at)) }}</td>
				<td> @if($rep->status==1) 已查看 @else <span class="color-1">未查看</span> @endif</td>
				<td>
					<a href="javascript:void(0);" onclick="delete_one('member/report/{{$rep->id}}','{{$rep->id}}','{{csrf_token()}}')" class="ml-20"><img src="{{ asset('/images/front/member/trash.png') }}"></a>
				</td>
			</tr>
			@endforeach
		</table>
</div>
@stop

<!-- 底部块 -->
@section('footer')
    @parent
@stop

